package com.elai.baseconfig.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.elai.baseconfig.mapper.EventTeamMapper;
import com.elai.baseconfig.domain.EventTeamDO;
import com.elai.baseconfig.service.EventTeamService;

/**
 * 事件分组Service业务层处理
 *
 * @author elai
 * @date 2021-04-23
 */
@Service
public class EventTeamServiceImpl implements EventTeamService
{
    @Autowired
    private EventTeamMapper eventTeamMapper;

    /**
     * 查询事件分组
     *
     * @param id 事件分组ID
     * @return 事件分组
     */
    @Override
    public EventTeamDO selectEventTeamById(Long id)
    {
        return eventTeamMapper.selectEventTeamById(id);
    }

    /**
     * 查询事件分组列表
     *
     * @param eventTeam 事件分组
     * @return 事件分组
     */
    @Override
    public List<EventTeamDO> selectEventTeamList(EventTeamDO eventTeam)
    {
        return eventTeamMapper.selectEventTeamList(eventTeam);
    }

    /**
     * 新增事件分组
     *
     * @param eventTeam 事件分组
     * @return 结果
     */
    @Override
    public int insertEventTeam(EventTeamDO eventTeam)
    {
        return eventTeamMapper.insertEventTeam(eventTeam);
    }

    /**
     * 修改事件分组
     *
     * @param eventTeam 事件分组
     * @return 结果
     */
    @Override
    public int updateEventTeam(EventTeamDO eventTeam)
    {
        return eventTeamMapper.updateEventTeam(eventTeam);
    }

    /**
     * 批量删除事件分组
     *
     * @param ids 需要删除的事件分组ID
     * @return 结果
     */
    @Override
    public int deleteEventTeamByIds(Long[] ids)
    {
        return eventTeamMapper.deleteEventTeamByIds(ids);
    }

    /**
     * 删除事件分组信息
     *
     * @param id 事件分组ID
     * @return 结果
     */
    @Override
    public int deleteEventTeamById(Long id)
    {
        return eventTeamMapper.deleteEventTeamById(id);
    }
}
